import { post } from "./ajax";

export const postAnswer = async (
  answerInfo: any
): Promise<{ errno: number }> => {
  console.log("answerInfo:", answerInfo);
  const url = `/api/answer`;
  const data = await post(url, answerInfo);
  return data;
};
